package com.kuson.springcloud.service.impl;

import com.kuson.springcloud.dao.StorageMapper;
import com.kuson.springcloud.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 实现层
 */
@Service
public class StorageServiceImpl implements StorageService {
    @Resource
    private StorageMapper storageMapper;
    @Override
    public int updateStorageById(Long productId, Long count) {
        return storageMapper.decrease(productId,count);
    }
}
